Skip to content

Merge WebGPU backend#1514

Open
tychedelia wants to merge 32 commits intomainfrom
the-wgpu-moment
Open

Merge WebGPU backend#1514
tychedelia wants to merge 32 commits intomainfrom
the-wgpu-moment

Conversation

@tychedelia
Copy link
Copy Markdown
Member

Some important notes:

  • We need to upgrade to Gradle 9.0 in order to support Java 24 for WebGPU builds (Panama support).
  • WebGPU support is disabled by default, minus the Gradle upgrade, this should leave the default build the same.
  • -PenableWebGPU=true toggles WebGPU support. Users will need to make sure they have the submodule initialized. Someone should test on their new machine.

catilac and others added 30 commits October 11, 2025 17:35
* FFI error setup

* Clear before init.
WebGPU surface creation / basic app lifecycle
* Implement background.

* Install wayland deps.
* Implement basic rendering flow

* Fix naming.

* Actually fix rename.
Added support for submodules in the checkout step.
Added submodule support to the checkout steps.
# Conflicts:
#	.github/workflows/build-gradle.yml
#	.github/workflows/pull_request-gradle.yml
#	.gitignore
#	app/build.gradle.kts
#	core/build.gradle.kts
#	gradle/libs.versions.toml
@catilac catilac requested review from SableRaf, catilac and kjhollen May 3, 2026 01:15
Comment thread app/build.gradle.kts Outdated

tasks.register<Copy>("includeJdk") {
from(Jvm.current().javaHome.absolutePath)
val jdkVersion = if (enableWebGPU) 24 else 17
Copy link
Copy Markdown
Collaborator

@SableRaf SableRaf May 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last time I checked, upgrading from Java 17 was blocked by Ant (See this comment):

Currently the preprocessor (which is still partially build with ant) crashes on anything JDK >17 so we're locked at 17 till we fix that

Was this solved? Or is that not relevant here?

Comment thread BUILD.md Outdated
### Install Temurin JDK 24

```bash
brew install --cask temurin@24 # macOS
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running this command returned this for me:

Warning: Cask 'temurin@24' is unavailable: No Cask with this name exists.
==> Searching for similarly named casks...
==> Casks
temurin ✔                   temurin@11                  temurin@17                  temurin@19 (deprecated)     temurin@20 (deprecated)     temurin@21                  temurin@25                  temurin@8

To install temurin ✔, run:
  brew install --cask temurin ✔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants